package com.anywhere.freightman.car.service;

import com.anywhere.freightman.car.model.CarModel;
import com.anywhere.freightman.car.model.DriverModel;
import com.anywhere.freightman.common.IBaseEntityService;
import com.anywhere.freightman.common.entity.car.CarQueryEntity;

import java.util.List;

public interface ICarService extends IBaseEntityService<CarModel, CarQueryEntity> {
    CarModel getByCarNumber(String carNumber);

    List<DriverModel> getDriverList(Long carId);

    List<CarModel> getListByCompanyId(Long companyId);

    List<CarModel> getTrailerListByCompanyId(Long companyId);

    void bindDriver(long carId, long driverId);

    void removeDriver(long carId);

    void removeDriver(long carId, long driverId);

    void removeDriverByDriver(long driverId);

    void remove(long carId);
}
